//
//  ViewController.swift
//  JMMediaTest
//
//  Created by Mengxuan Chen on 2019/1/3.
//  Copyright © 2019年 Mengxuan Chen. All rights reserved.
//

import UIKit
import  CTMediator
class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
//        CTMediator.sharedInstance()?.jm_startConnectBluetooth(uuid: nil, characterUUID: nil)
        
       self.view.backgroundColor = UIColor.white
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
//        let media = CTMediator.sharedInstance()?.jm_getMediaPlayMoudle("https://www.baidu.com")
//        self.navigationController?.pushViewController(media!, animated: true)
        
        CTMediator.sharedInstance()?.jm_showAddressList({ (url) in
            CTMediator.sharedInstance()?.jm_openMediaPlayMoudle(url)
        })
    }

}

